<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\models\Tenant */

$this->title = '查看';
$this->registerCssFile(Url::to('@web/lib/highlight/styles/agate.css'), ['depends' => [\app\modules\admin\assets\AdminAsset::className()], 'position' => $this::POS_END]);
?>
<div class="tenant-view">

    <h2 class="text-center"><?= Html::encode($id) ?>.sql</h2>

    <p>
        <?= Html::a('返回', ['update']) ?>
    </p>

    <?php if ($isDestroy) { ?>
        <div class="alert alert-danger"><strong>警告！</strong> 该SQL文件已被物理删除，本处显示为迁移记录内容而非真实文件内容</div>
    <?php } ?>
    
    <pre><code class="sql"><?= $sql ?></code></pre>
    
</div>
<?php
$this->registerJsFile(Url::to('@web/lib/highlight/highlight.pack.js'), ['depends' => [\app\modules\admin\assets\AdminAsset::className()], 'position' => $this::POS_END]);
$this->registerJs('hljs.initHighlightingOnLoad();', $this::POS_END);
?>
